import request from '@/utils/request'

export default{
    //前端讲师分页
    getPageCourseList(page, limit, searchObj){
        return request({
            url: `/eduservice/coursefront/pageCourseList/${page}/${limit}`,
            method: 'post',
            data: searchObj
        })
    },
    //课程分类列表
    getSubjectList() {
        return request({
            url: `/eduservice/subject/getAllSubject`,
            method: 'get'
        })
    },

    //课程信息
    getCourseEditInfo(courseId) {
        return request({
            url: `/eduservice/coursefront/getCourseEditInfo/` + courseId,
            method: 'get'
        })
    }
}